 <?php echo $header;?>
	<div id="content">
 
 
  <?php if ($error_warning) { ?>
  <div class="alert alert-error"><?php echo $error_warning; ?><a class="close" data-dismiss="alert">×</a></div>
  <?php } ?>
  <div class="box">
     <div class="heading">
      <h1><img src="view/image/information.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
        <tr>
            <td><span class="required">*</span> <?php echo "名称"; ?></td>
            <td><input type="text" name="common_name" value="<?php echo $common_name; ?>" />
          </tr>
          <tr>
            <td><span class="required">*</span> <?php echo "URL"; ?></td>
            <td><input type="text" name="url" value="<?php echo $url; ?>" />
              <?php if ($error_url) { ?>
              <span class="error"><?php echo $error_url; ?></span>
              <?php } ?></td>
          </tr>
          <tr>
            <td><span class="required">*</span> <?php echo "Token"; ?></td>
            <td><input type="text" name="token" value="<?php echo $token; ?>" />
              <?php if ($error_token) { ?>
              <span class="error"><?php echo $error_token; ?></span>
              <?php } ?></td>
          </tr>
          
           <tr>
            <td><span class="required">*</span> <?php echo "appid"; ?></td>
            <td><input type="text" name="appid" value="<?php echo $appid; ?>" />
              <?php if (isset($error_token)) { ?>
              <span class="error"><?php echo $error_token; ?></span>
              <?php } ?></td>
          </tr>
          
           <tr>
            <td><span class="required">*</span> <?php echo "appsecret"; ?></td>
            <td><input type="text" name="appsecret" value="<?php echo $appsecret; ?>" />
              <?php if (isset($error_token)) { ?>
              <span class="error"><?php echo $error_token; ?></span>
              <?php } ?></td>
          </tr>
          
           <tr>
            <td><?php echo $entry_status; ?></td>
            <td><select name="status">
                <?php if ($status==1) { ?>
                <option value="0"><?php echo $text_disabled; ?></option>
                <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                <?php } else { ?>
                <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                <option value="1"><?php echo $text_enabled; ?></option>
                <?php } ?>
              </select></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
  
  </div>
  <?php echo $footer; ?> 
